package com.lylg.picture_share.dao;

import com.lylg.picture_share.entity.Manager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface ManagerMapper {

    Manager selectManagerByNP(String manager_name, String manager_pwd);
    public List<Manager> selectManagers(Manager manager);
    void updatePwd(@Param("mid") Integer managerId, @Param("mpwd") String manager_pwd);

    void updStatus(Integer manager_id);

    void saveManager(Manager manager);

    void restPWd(@Param("mid") Integer managerId,@Param("mpwd") String manager_pwd);

    public List<Manager> selectAllManagers(Manager manager);
}
